/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.polymorphism.mobile;

/**
 *
 * @author Enkosi
 */
public abstract class Employee {
   private String name; 

   public Employee(String name)  { 
      setName(name); 
   } 
   public String getName()  { 
      return name; 
   } 
  
   private void setName(String nm)  { 
      name = nm; 
   } 
    
   abstract public double pay(); 

   @Override
   public String toString()  { 
      return "name is " + name; 
   }
}
